package com.lxd.user.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author liuxiaoding
 * @data 2019/7/4
 */
@RestController
public class UserInfoController {

//    @Value("${spring.datasource.url}")
//    private String url;

    @RequestMapping(value = "getUserBaseInfo")
    public JSONObject getUserBaseInfo(){
        JSONObject jsonObject=new JSONObject();
        jsonObject.put("name","用户服务");
        jsonObject.put("index",1);
        jsonObject.put("url","xxx");
        return  jsonObject;
    }

}
